package com.itfreer.gather.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import org.springframework.beans.BeanUtils;
import com.itfreer.form.api.JdbcBaseEntity;

/**
 * 定义任务实体
 */
@Entity(name = "gis_task")
public class JdbcGisTaskEntity implements JdbcBaseEntity<TaskEntity>, Serializable {

	private static final long serialVersionUID = -8979102858592741474L;

	/**
	 * 主健
	 */
	@Id
	@Column(name = "s_iD", length = 50, nullable = true)
	private String id;

	/**
	 * 任务名称
	 */
	@Column(name = "s_taskName", length = 50, nullable = true)
	private String taskName;

	/**
	 * 任务内容
	 */
	@Column(name = "s_taskContent", length = 200, nullable = true)
	private String taskContent;

	/**
	 * 任务类型
	 */
	@Column(name = "s_taskType", length = 2, nullable = true)
	private String taskType;

	/**
	 * 任务业务ID
	 */
	@Column(name = "s_taskID", length = 50, nullable = true)
	private String taskID;

	/**
	 * 任务状态
	 */
	@Column(name = "s_taskState", length = 2, nullable = true)
	private String taskState;

	/**
	 * 发布时间
	 */
	@Column(name = "d_publishDate", nullable = true)
	private java.util.Date publishDate;

	/**
	 * 发布者
	 */
	@Column(name = "s_publishUserID", length = 50, nullable = true)
	private String publishUserID;

	/**
	 * 发布者
	 */
	@Column(name = "s_publishUserName", length = 20, nullable = true)
	private String publishUserName;

	/**
	 * 计划完成时间
	 */
	@Column(name = "d_planDate", nullable = true)
	private java.util.Date planDate;

	/**
	 * 完成者
	 */
	@Column(name = "s_completeUserID", length = 50, nullable = true)
	private String completeUserID;

	/**
	 * 完成者
	 */
	@Column(name = "s_completeUserName", length = 20, nullable = true)
	private String completeUserName;

	/**
	 * 完成时间
	 */
	@Column(name = "d_completeDate", nullable = true)
	private java.util.Date completeDate;

	/**
	 * 主健
	 */
	public String getId() {
		return id;
	}

	/**
	 * 主健
	 */
	public void setId(String value) {
		this.id = value;
	}

	/**
	 * 任务名称
	 */
	public String getTaskName() {
		return taskName;
	}

	/**
	 * 任务名称
	 */
	public void setTaskName(String value) {
		this.taskName = value;
	}

	/**
	 * 任务内容
	 */
	public String getTaskContent() {
		return taskContent;
	}

	/**
	 * 任务内容
	 */
	public void setTaskContent(String value) {
		this.taskContent = value;
	}

	/**
	 * 任务类型
	 */
	public String getTaskType() {
		return taskType;
	}

	/**
	 * 任务类型
	 */
	public void setTaskType(String value) {
		this.taskType = value;
	}

	/**
	 * 任务业务ID
	 */
	public String getTaskID() {
		return taskID;
	}

	/**
	 * 任务业务ID
	 */
	public void setTaskID(String value) {
		this.taskID = value;
	}

	/**
	 * 任务状态
	 */
	public String getTaskState() {
		return taskState;
	}

	/**
	 * 任务状态
	 */
	public void setTaskState(String value) {
		this.taskState = value;
	}

	/**
	 * 发布时间
	 */
	public java.util.Date getPublishDate() {
		return publishDate;
	}

	/**
	 * 发布时间
	 */
	public void setPublishDate(java.util.Date value) {
		this.publishDate = value;
	}

	/**
	 * 发布者
	 */
	public String getPublishUserID() {
		return publishUserID;
	}

	/**
	 * 发布者
	 */
	public void setPublishUserID(String value) {
		this.publishUserID = value;
	}

	/**
	 * 发布者
	 */
	public String getPublishUserName() {
		return publishUserName;
	}

	/**
	 * 发布者
	 */
	public void setPublishUserName(String value) {
		this.publishUserName = value;
	}

	/**
	 * 完成者
	 */
	public String getCompleteUserID() {
		return completeUserID;
	}

	/**
	 * 完成者
	 */
	public void setCompleteUserID(String value) {
		this.completeUserID = value;
	}

	/**
	 * 完成者
	 */
	public String getCompleteUserName() {
		return completeUserName;
	}

	/**
	 * 完成者
	 */
	public void setCompleteUserName(String value) {
		this.completeUserName = value;
	}

	/**
	 * 完成时间
	 */
	public java.util.Date getCompleteDate() {
		return completeDate;
	}

	/**
	 * 完成时间
	 */
	public void setCompleteDate(java.util.Date value) {
		this.completeDate = value;
	}

	public java.util.Date getPlanDate() {
		return planDate;
	}

	public void setPlanDate(java.util.Date planDate) {
		this.planDate = planDate;
	}

	@Override
	public void from(TaskEntity t) {
		BeanUtils.copyProperties(t, this);
	}

	@Override
	public TaskEntity toEntity() {
		TaskEntity toEntity = new TaskEntity();
		BeanUtils.copyProperties(this, toEntity);
		return toEntity;
	}
}